import { Module } from '@nestjs/common';
import { ArticlesService } from './articles.service';
import { ArticlesController } from './articles.controller';
import { Article } from './entities/article.entity';
import { TypeOrmModule } from '@nestjs/typeorm';
import { Tag } from '../tags/entities/tag.entity';
import { Category } from '../categories/entities/category.entity';
import { ArticleTag } from '../common/entities/article-tag.entity';
import { RedisService } from "../common/service/redis.service";

@Module({
  imports: [TypeOrmModule.forFeature([Article, Tag, Category, ArticleTag])],
  controllers: [ArticlesController],
  providers: [ArticlesService,RedisService],
  exports: [ArticlesService]
})
export class ArticlesModule {}
